package com.ttt.service;

import com.ttt.mapper.impl.SelectCoureMapperImpl;
import com.ttt.pojo.Course;
import com.ttt.utils.DbConnectionUtil;

import java.sql.SQLException;
import java.util.List;

public class SelectCourseCenterService {
    //查找全部课程
    public List<Course> findCourse() throws SQLException {

        //调用mapper的方法
        SelectCoureMapperImpl selectCoureMapper = new SelectCoureMapperImpl();
        List<Course> course = selectCoureMapper.findCourse();
        return course;
    }
    //有条件查找课程
    public List<Course> conditionFindCourse(String classType,String academy,String time) throws SQLException {
        //调用mapper的方法
        SelectCoureMapperImpl selectCoureMapper = new SelectCoureMapperImpl();
        selectCoureMapper.conditionFindC( classType,academy,time);
        return null;
    }
}
